package com.abth.douyin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.abth.douyin.mapper.DouyinCityMapper;
import com.abth.douyin.domain.DouyinCity;
import com.abth.douyin.service.IDouyinCityService;

/**
 * 城市Service业务层处理
 * 
 * @author abingtech
 * @date 2025-09-09
 */
@Service
public class DouyinCityServiceImpl implements IDouyinCityService 
{
    @Autowired
    private DouyinCityMapper douyinCityMapper;

    /**
     * 查询城市
     * 
     * @param id 城市主键
     * @return 城市
     */
    @Override
    public DouyinCity selectDouyinCityById(Long id)
    {
        return douyinCityMapper.selectDouyinCityById(id);
    }

    /**
     * 查询城市列表
     * 
     * @param douyinCity 城市
     * @return 城市
     */
    @Override
    public List<DouyinCity> selectDouyinCityList(DouyinCity douyinCity)
    {
        return douyinCityMapper.selectDouyinCityList(douyinCity);
    }

    /**
     * 新增城市
     * 
     * @param douyinCity 城市
     * @return 结果
     */
    @Override
    public int insertDouyinCity(DouyinCity douyinCity)
    {
        return douyinCityMapper.insertDouyinCity(douyinCity);
    }

    /**
     * 修改城市
     * 
     * @param douyinCity 城市
     * @return 结果
     */
    @Override
    public int updateDouyinCity(DouyinCity douyinCity)
    {
        return douyinCityMapper.updateDouyinCity(douyinCity);
    }

    /**
     * 批量删除城市
     * 
     * @param ids 需要删除的城市主键
     * @return 结果
     */
    @Override
    public int deleteDouyinCityByIds(Long[] ids)
    {
        return douyinCityMapper.deleteDouyinCityByIds(ids);
    }

    /**
     * 删除城市信息
     * 
     * @param id 城市主键
     * @return 结果
     */
    @Override
    public int deleteDouyinCityById(Long id)
    {
        return douyinCityMapper.deleteDouyinCityById(id);
    }
}
